//
//  DataBaseHaneler.h
//  shise
//
//  Created by 徐国庆 on 14/12/21.
//  Copyright (c) 2014年 MZP. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
#import "Food.h"
@interface DataBaseHaneler : NSObject

{
    sqlite3 *dbPoint;
}


// 利用单利创建数据库
+(DataBaseHaneler *)shareInstance;

// 打开数据库
- (BOOL)openDB;
// 创建美食表
- (BOOL)createFoodTable;
// 添加一条美食数据
- (BOOL)insertFood:(Food *)food userName:(NSString *)currentUserName;
// 删除一条美食数据
- (BOOL)deleteFoodWithPic_url:(NSString *)pic_url;
// 查询美食数据
- (NSMutableArray *)selectAll;

@end
